package com.yzf.demo.demo.DesignPattren.SingletonPattern.containersingleton;


import com.yzf.demo.demo.DesignPattren.SingletonPattern.lazysingleton.TestBean;

/**
 * Created by 于占峰 on 2020/2/27/027.
 */
public class IocSingletonThreadTestBean implements Runnable {


    @Override
    public void run() {
        TestBean bean = (TestBean) IocSingletonThread.getBean("TestBean");
        System.out.println("线程:" + Thread.currentThread().getName() + ":" + bean);
    }
}
